package cn.niit.pm.service;

import cn.niit.pm.entity.Department;
import org.springframework.stereotype.Service;

import java.util.List;

/* * fahui
 * 部门业务逻辑层接口（主要被Controller层调用）
 * */

public interface DepartmentService {
    /**
     * 根据查询条件，查询符合所有条件的部门信息
     * @param department
     * @return*/


    List<Department> selectListByDepartment(Department department);

    /**
     * 添加部门信息
     * @param department
     * @return*/


    int insertDepartment(Department department);

    /**
     * 根据部门ID查询部门信息
     * @param departmentId
     * @return
     */

    Department selectByDepartmentId(Integer departmentId);

    /**
     * 更新部门信息
     * @param department
     * @return*/


    int updateDepartment(Department department);

    /**
     * 删除部门信息（依据ID）
     * @param departmentId
     * @return*/


    int deleteByDepartmentId(Integer departmentId);
}
